package com.hpf.lease.web.admin.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hpf.lease.model.bean.UserInfo;
import com.hpf.lease.web.admin.dto.UserSearchSubmitDto;
import com.hpf.lease.web.admin.mapper.UserInfoMapper;
import com.hpf.lease.web.admin.service.UserInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author GOD
* @description 针对表【user_info(用户信息表)】的数据库操作Service实现
* @createDate 2024-08-29 15:00:50
*/
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo>
    implements UserInfoService {

    @Override
    public Page<UserInfo> getPageItem(UserSearchSubmitDto submitDto) {
        Page<UserInfo> page = new Page<>(submitDto.getCurrent(), submitDto.getSize());
        List<UserInfo> list = baseMapper.getPageItem(page,submitDto);
        page.setRecords(list);
        return page;
    }
}




